package com.knightcloud.micro.upms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.knightcloud.common.base.vo.response.R;
import com.knightcloud.micro.upms.api.dto.SysUserDto;
import com.knightcloud.micro.upms.api.dto.SysUserInfoDto;
import com.knightcloud.micro.upms.api.entity.SysUser;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author knight
 */
public interface ISysUserService extends IService<SysUser> {

	/**
	 * 根据用户名查询用户
	 * @param username username
	 * @return User
	 */
	SysUser selectUserByUsername(String username);

	/**
	 * 根据用户名查询SysUserDto
	 * @param username 用户名
	 * @return {@link R}<{@link SysUserDto}>
	 */
	R<SysUserDto> selectSysUserDtoByUsername(String username);

	/**
	 * 根据用户名查询系统用户信息
	 * @param username 用户名
	 * @return {@link R}<{@link SysUserInfoDto}>
	 */
	R<SysUserInfoDto> selectSysUserInfoDtoByUsername(String username);

}
